﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="EditCustomer.aspx.cs" Inherits="ProjectSem3.Admin.WebForm8" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
    <ul>
        <li><a href="ListEmployee.aspx"><span>Employees</span></a></li>
        <li><a href="ListCustomer.aspx" class="current"><span>Customers</span></a></li>
        <li><a href="RegistrationEmployee.aspx"><span>New user</span></a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
   <div class="grid_9">
        <h1 class="dashboard">
            Customer
        </h1>
    </div>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div class="portlet">
        <div class="portlet-content nopadding">
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                <tr>
                    <th style="width:25%">
                       username
                    </th>
                    <td style="width:25%">
                        <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
                    </td >
                    <td style="width:50%">
                        &nbsp;
                        <asp:Label ID="LabelMessage" runat="server" ForeColor="Red"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtUsername" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Password
                    </th>
                    <td>
                        <asp:TextBox ID="TextBoxpassword" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="TextBoxpassword" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                   <th>
                        Re - Password
                    </th>
                    <td>
                        <asp:TextBox ID="TextBoxRepass" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="TextBoxRepass" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator2" runat="server" 
                            ControlToCompare="TextBoxpassword" ControlToValidate="TextBoxRepass" 
                            ErrorMessage="CompareValidator" ForeColor="Red" ValidationGroup="1" 
                            ValueToCompare="string">Password is not same</asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Fullname
                    </th>
                    <td>
                        <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="TextBoxName" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Birthday
                    </th>
                    <td>
                        <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            ControlToValidate="txtBirthday" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Gender
                    </th>
                    <td>
                     
                        <input id="rdoMale" type="radio" runat="server" name="rdoGender" />Male <input
                            id="rdoFemale" type="radio" runat="server" name="rdoGender" />Female
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
<th>
                         Email
                    </th>
                    <td>
                        <asp:TextBox ID="TextBoxMail" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:Label ID="lblEmailMessage" runat="server" ForeColor="Red"></asp:Label>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="TextBoxMail" Display="Dynamic" 
                            ErrorMessage="RegularExpressionValidator" ForeColor="Red" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            ValidationGroup="1">mail is not valid</asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                            ControlToValidate="TextBoxMail" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                   <th>
                         Address
                    </th>
                    <td>
                        <asp:TextBox ID="TextBoxAddress" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                            ControlToValidate="TextBoxAddress" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                         CompanyAddress
                    </th>
                    <td>
                        <asp:TextBox ID="TextBoxComAddress" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                            ControlToValidate="TextBoxComAddress" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                   <th>
                         Phone
                    </th>
                    <td>
                        <asp:TextBox ID="TextBoxPhone" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                            ControlToValidate="TextBoxPhone" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Status
                    </th>
                    <td>
                        <input id="Radio1" type="radio" runat="server" name="Radio" />Enable <input
                            id="Radio2" type="radio" runat="server" name="Radio" />Disable
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="Update" OnClick="Button1_Click" 
                            ValidationGroup="1" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div> 
    
</asp:Content>
